/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DataAccess;

import java.sql.PreparedStatement;
import java.sql.SQLException;

/**
 *
 * @author thangvv0907i
 */
public class Logout_DA {

    public void setLastLogin_DA(String UID,String dateNow) {
        try {
            PreparedStatement ps = ConnectionDB.getConnection().prepareCall("{call setLastLogout(?,?)}");
            ps.setString(1, UID);
            ps.setString(2, dateNow);
            ps.execute();
        } catch (SQLException ex) {
            ex.printStackTrace();
        }
    }

}
